//
//  main.m
//  OC - 代码练习
//
//  Created by dllo on 15/12/7.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"
#import "Student.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {

//        Person *per1 = [[Person alloc]init];
//        NSLog(@"%ld",[per1 retainCount]);
//        [per1 retain];
//        NSLog(@"%ld",[per1 retainCount]);
//        [per1 release];
//        NSLog(@"%ld",[per1 retainCount]);
//        [per1 release];
//        NSLog(@"%ld",[per1 retainCount]);

        
  

        
//        Student *stu = [[Student alloc]init];
//        [stu setValue:@"zhangsan" forKey:@"name"];
//        [stu setValue:@20 forKey:@"age"];
//        [stu setValue:@"male" forKey:@"sex"];
//        
//        NSLog(@"name:%@",[stu valueForKey:@"name"]);
//        NSLog(@"age:%@",[stu valueForKey:@"age"]);
//        NSLog(@"sex:%@",[stu valueForKey:@"sex"]);
        
        
        
//        Student *stu = [[Student alloc]init];
//        NSDictionary *dic = @{@"name":@"zhangsan",
//                              @"age":@"20",
//                              @"sex":@"male"};
//        [stu setValuesForKeysWithDictionary:dic];
//        NSLog(@"%@",[stu valueForKey:@"name"]);
//        NSLog(@"%@",[stu valueForKey:@"sex"]);
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    }
    return 0;
}
